package com.wl.wuliu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wl.wuliu.entity.PasswordBody;
import com.wl.wuliu.entity.SysUser;
import com.wl.wuliu.result.AjaxResult;

import java.util.List;

/**
 * @Author: gutaozhen
 * @Date: 2024/5/15
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 列表查询
     * @param sysUser
     * @return
     */
    List<SysUser> findList(SysUser sysUser);

    SysUser selectUserByUserName(String username);

    AjaxResult saveSysUser(SysUser sysUser);

    AjaxResult updatePwd(PasswordBody passwordBody);

    /**
     * 查询用户信息
     * @param sysUser
     * @return
     */
    SysUser findSysUser(SysUser sysUser);

    /**
     * 登录时获取微信用户的详细信息
     * @param code
     * @return
     */
    SysUser getWeixinUserInfo(String code);
}
